package com.lagou.dao;

import com.lagou.pojo.Course;
import com.lagou.pojo.Course_Lesson;
import com.lagou.pojo.Course_Section;

import java.util.List;

/**
 * @author TianSu
 * @creat 2021-05-11-16:00
 * 课程内容管理DAO层接口
 **/
public interface CourseContentDao {
    public List<Course_Section> findSectionAndLessonByCourseId(int courseId);

    public List<Course_Lesson> findLessonBySectionId(int sectionId );

    public Course findCourseByCourseId(int courseId );

    public int saveSection(Course_Section section);

    public int updateSection(Course_Section section);

    public int updateSectionStatus(int id,int status);

    public int saveLesson(Course_Lesson lesson);

    public int updateLesson(Course_Lesson lesson);
}
